import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class MapListTest {

    public static void main(String[] args) {

        Map<String, Object> aya = new HashMap<>();
        aya.put("test", 1);

        Map<String, Object> hashMap = new HashMap<>();
        hashMap.put("yutao", 1);
        hashMap.putAll(aya);
        hashMap.put("test", 2);

        System.out.println(hashMap.toString());


        /*List<Map<String, Object>> list = new ArrayList<>();
        list.add(aya);
        aya.put("test", 3);
        List<Map<String, Object>> list1 = new ArrayList<>();
        Map<String, Object> ay1 = new HashMap<>();
        ay1.put("aa", 1);
        list1.add(ay1);
        list.addAll(list1);
        ay1.put("aa", "yutao");
        System.out.println(hashMap.toString());
        System.out.println(list.toString());*/

    }

}
